package com.frank.stock4j.tusharepro.entity;

import com.frank.stock4j.tusharepro.bean.CnMBean;
import lombok.Data;
import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDate;
import com.frank.stock4j.tusharepro.bean.CnMBean;

/**
* 描述：获取货币供应量之月度数据
* @author: codesmith
**/
@Data
@Entity
@Table(name = "adj_factor")
@IdClass(CnMEntity.PrimaryKey.class)
public class CnMEntity implements CnMBean {
    @Data public static class PrimaryKey implements Serializable {
        private String month;
    }


    @Id
    @Column(name = "month") protected String month;    //月份YYYYMM

    @Column(name = "m0") protected Double m0;    //M0（亿元）

    @Column(name = "m0_yoy") protected Double m0Yoy;    //M0同比（%）

    @Column(name = "m0_mom") protected Double m0Mom;    //M0环比（%）

    @Column(name = "m1") protected Double m1;    //M1（亿元）

    @Column(name = "m1_yoy") protected Double m1Yoy;    //M1同比（%）

    @Column(name = "m1_mom") protected Double m1Mom;    //M1环比（%）

    @Column(name = "m2") protected Double m2;    //M2（亿元）

    @Column(name = "m2_yoy") protected Double m2Yoy;    //M2同比（%）

    @Column(name = "m2_mom") protected Double m2Mom;    //M2环比（%）
}